#ifndef MAINFORM_H
#define MAINFORM_H

#include <QWidget>
#include <QObject>
#include<QPushButton>
#include <QDesktopWidget>
#include<QDebug>
#include<QLabel>
#include <QFrame>
#include<QGridLayout>

class MainForm : public QWidget{
    Q_OBJECT
private:
    //UI
    QPushButton * connectButton;//连接
    QPushButton * structureButton;//结构参数
    QPushButton * coeffButton;//偏心参数
    QPushButton * explanationButton;//说明

    QLabel * calibrationLOGO;
    QLabel * correctionLOGO;
    QLabel * coordinateLOGO;

    QLabel * calibrationLabel;//标定程序
    QLabel * correctionLabel;//验证程序
    QLabel * tcpLabel;//测头程序

    QImage calibrationImage;
    QImage correctionImage;
    QImage tcpImage;

    QGridLayout * mGridLayout;
public:
    explicit MainForm(QWidget *parent = nullptr);
    void SetMainForm(QWidget *parent);

    void setStructEnabled(bool arg);
    void setCoeffEnabled(bool arg);
    void setExplanEnabled(bool arg);

    //主界面事件过滤器功能判断
    bool isCalibPartEnable(QObject *obj);
    bool isCoordiPartEnable(QObject *obj);
    //信号和槽
    QPushButton * getConnectButtonPointer() const;
    QPushButton * getStructButtonPointer() const;
    QPushButton * getCoeffButtonPointer() const;
    QPushButton * getExplanButtonPointer() const;
signals:

public slots:
};

#endif // MAINFORM_H
